<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      7.9.&nbsp;Creating the /etc/shells File
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body class="lfs" id="lfs-8.0-systemd">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 8.0-systemd
      </h4>
      <h3>
        Chapter&nbsp;7.&nbsp;System Configuration
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="inputrc.html" title=
          "Creating the /etc/inputrc File">Prev</a>
          <p>
            Creating the /etc/inputrc File
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="systemd-custom.html" title=
          "Systemd Usage and Configuration">Next</a>
          <p>
            Systemd Usage and Configuration
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter07.html" title=
          "Chapter&nbsp;7.&nbsp;System Configuration">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0-systemd">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-config-shells" name="ch-config-shells"></a>7.9. Creating
        the /etc/shells File
      </h1>
      <p>
        The <code class="filename">shells</code> file contains a list of
        login shells on the system. Applications use this file to determine
        whether a shell is valid. For each shell a single line should be
        present, consisting of the shell's path, relative to the root of the
        directory structure (/).
      </p>
      <p>
        For example, this file is consulted by <span class=
        "command"><strong>chsh</strong></span> to determine whether an
        unprivileged user may change the login shell for her own account. If
        the command name is not listed, the user will be denied of change.
      </p>
      <p>
        It is a requirement for applications such as <span class=
        "application">GDM</span> which does not populate the face browser if
        it can't find <code class="filename">/etc/shells</code>, or FTP
        daemons which traditionally disallow access to users with shells not
        included in this file.
      </p>
      <pre class="root">
<kbd class="command">cat &gt; /etc/shells &lt;&lt; "EOF"
<code class="literal"># Begin /etc/shells

/bin/sh
/bin/bash

# End /etc/shells</code>
EOF</kbd>
</pre>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="inputrc.html" title=
          "Creating the /etc/inputrc File">Prev</a>
          <p>
            Creating the /etc/inputrc File
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="systemd-custom.html" title=
          "Systemd Usage and Configuration">Next</a>
          <p>
            Systemd Usage and Configuration
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter07.html" title=
          "Chapter&nbsp;7.&nbsp;System Configuration">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0-systemd">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
